package com.graduation.lastproject.dao.business;

import com.graduation.lastproject.entity.Business;
import com.graduation.lastproject.entity.HotelInfo;

import java.util.Map;

public interface BusinessDao {
    Integer insertInfo(Map<String, String[]> map);

    //上传酒店数据信息
    Integer insertInfo1(Map<String, Object> map);

    //上传酒店图片信息
    Integer insertPicInfo(Map<String, Object> info);

    //更新酒店图片信息
    Integer updatePicInfo(Map<String, Object> info);

    //查询商家是否存在
    boolean getBusinessPhone(String bphone);

    //商家注册
    Integer insertBusinessInfo(Map<String,Object> map);

    //商家信息修改
    Integer updateBusinessInfo(Map<String,Object> map);

    //根据登录名查登录人所有信息
    Business getByLogsinName(String loginname);

    //根据登录人电话查询相关联的酒店信息
    HotelInfo getHotelInfoByBphone(String bphone);

    //修改商家信息级联修改hotelInfo bphone电话
    void updateHotelInfoBphone(Map<String,Object> map);
}
